<!DOCTYPE html>
<html>
	<head>
	    <meta charset="utf-8">
	    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
	    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
	    <title>审批记录</title>
	    <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
	    <link rel="stylesheet" type="text/css" href="../css/common.css"/>
	</head>
	<body>
		<ul class="lc_list" id="ordrListsContent">
			<script type="text/template" id="itemslist">
			{{each datas as item i}}
			<li>
				<p class="lc_time"><i class="lc_time_icon"></i>{{item.changedate}}</p>
				<ul class="mui-table-view mui-table-view-chevron lc_info_ul">
					 <li class="mui-table-view-cell xli"><span class="lcicons icon-td"></span><span>审批人:{{item.changebyName}}</span></li>
			         <li class="mui-table-view-cell xli"><span class="lcicons icon-tg"></span><span>审批状态：{{item.status}}</span></li>
			         <li class="mui-table-view-cell xli"><span class="lcicons icon-ry"></span><span>备注：{{item.memo}}</span></li>
				</ul>
			</li>
			{{/each}}
            </script>
		</ul>
	</body>
	<script type="text/javascript" src="../script/api.js"></script>
	<script src="../script/mui.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../script/common.js" type="text/javascript" charset="utf-8"></script>
	<script src="../script/template.js" type="text/javascript" charset="utf-8"></script>
	<script>
		var cRegion = '', assetnum = '', userID = '',statusId, searchText;
		apiready = function () {
			onLoadData(curPage,false);
			scrollToBottomHandler(function() {
				if (!loadEnd) { // 没有结束时继续加载
					curPage++;
					onLoadData(curPage,true);
				} else { // 告诉到底了
					EndToast('到底了');
				}
			})
			Refresh(function() {
				loadEnd = false;
				curPage = 1;
				onLoadData(curPage,false);
			});
			api.parseTapmode();
		}
		function onLoadData (page,load) {
			ajaxrd("queryOrderAudit", {
				wonum: api.pageParam.wonum + '',
				pageNo: curPage,
				pageSize: 10
			}, function(ret, err) {
				api.refreshHeaderLoadDone();
				AddData('itemslist','ordrListsContent',ret,load);
			})
		}
	</script>
</html>
